package Ejercicio3;

import java.awt.GridLayout;

import javax.swing.JPanel;

public class Inicio {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		JPanel panel ;
	     
		panel = new JPanel();
		panel.setLayout(new GridLayout(3,1,5,5));
		
		Progreso1 bar1 = 	new Progreso1();
		Progreso2 bar2 = 	new Progreso2();
		Progreso3 bar3 = 	new Progreso3();
		
		bar1.start();
		bar2.start();
		bar3.start();
		
		
		panel.add(bar1.progressBar);
		panel.add(bar2.progressBar);
		panel.add(bar3.progressBar);

	
		
	

	        javax.swing.JOptionPane.showMessageDialog(null,
	        		panel,
	                    "Progress Bar",
	                    javax.swing.JOptionPane.PLAIN_MESSAGE);
	        System.exit(0);

	}

}
